package com.woniuxy.service.impl;

import com.woniuxy.entity.Loginmsg;
import com.woniuxy.dao.LoginmsgDao;
import com.woniuxy.service.LoginmsgService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.Date;
import java.util.List;

/**
 * (Loginmsg)表服务实现类
 *
 * @author
 * @since 2021-02-24 16:02:03
 */
@Service("loginmsgService")
public class LoginmsgServiceImpl implements LoginmsgService {
    @Resource
    private LoginmsgDao loginmsgDao;

    /**
     * 通过ID查询单条数据
     *
     * @param
     * @return 实例对象
     */
    @Override
    public List<Loginmsg> queryAll() {
        return this.loginmsgDao.queryAll();
    }

    @Override
    public List<Loginmsg> queryByTime(Date timeOne, Date timeTwo) {
        return this.loginmsgDao.queryByTime(timeOne,timeTwo);
    }

    @Override
    public int insert(Loginmsg loginmsg) {
        return this.loginmsgDao.insert(loginmsg);
    }


}